import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {Trxn} from "../../../model/pages/policy/policy-detail/policy-acct-trxn";

/**
 * Generated class for the TrxnDetailPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
    selector: 'page-trxn-detail',
    templateUrl: 'trxn-detail.html',
})
export class TrxnDetailPage {
    /**
     * 投资详情
     * @type {any[]}
     */
    trxnDetailList: Array<Trxn> = [];

    constructor(public navCtrl: NavController, public navParams: NavParams) {
    }

    ionViewDidLoad() {

        // 获取数据
        this.trxnDetailList = this.navParams.get('trxnDetail');

    }

    /**
     * 返回上一级
     */
    goBack() {
        this.navCtrl.pop()
    }

}
